<?php
/*
 * ReadChat Ajax Call File
 * 
 * This file will handle all the Ajax calls from the Chat Class
 * 
 * @author : Jason Meulenhoff
 * @mail : mail@kacangboi.com
 * @web : http://kacangboi.com
 * @copyright : KacangNetworks 2010
 * 
 */

require_once ("../../config.php");

if(isset($_POST['command']))
{
	$chat = new chat();
	$chat->readNewMessages();
}
else
	header("Location: ../controllers/error.controller.php");
	exit;
?>